<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*"%>
<%@ page import="com.chanyachting.emall.service.*"%>
<%@ page import="com.chanyachting.emall.serviceImpl.*"%>

<%
	//获得指定编号的求职信息对象
	RequestUtil ru=new RequestUtil(request);

	Applicationleter al=(Applicationleter)ru.getAttribute("Applicationleter",new Applicationleter());
	
	int id=al.getId();
	
	String inJobDate=al.getInJobDate();
	
	//拆分会员生日，拆分成 年，月，日  3个变量
	String temp []=StringUtil.toArray(inJobDate);
	
	String year=temp[0];
	String month=temp[1];
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title>修改人才库</title>

<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>

<script language="javascript" type="text/javascript">

	$(function(){

		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});

		var id="<%=id%>";

		$("#jobhistoryList").load("applicationLeter_jobhistory_list.jsp",{id:id});

		$("#educationhistoryList").load("applicationLeter_educationhistory_list.jsp",{id:id});

		});

</script>

</head>

<body>
<div class="tab_box">

<div class="tab_menu">
	<a href="applicationLeter_create.jsp"class="current">修改人才库</a> 
	
</div>

<div class="tab_submenu">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="50%">&nbsp;</td>
		<td align="right"><strong><a href="#">预览</a><a href="#">打印</a><a
			href="#">导出</a></strong></td>
	</tr>
</table>
</div>



<%= new RequestUtil(request).getMsg() %>

</div>
<form action="<%=root %>/memberBackend/appleterUpdate.do" method="post" enctype="multipart/form-data" name="form3"
	id="form3">
	
	<input type="hidden" name="id" value="<%=al.getId() %>" />
	<input type="hidden" name="status" value="<%=al.getStatus() %>" />
	<input type="hidden" name="memberId" value="<%= al.getMemberId() %>" />
	
	<input type="hidden" name="createDate" value="<%= al.getCreateDate() %>" />
	<input type="hidden" name="releaseDate" value="<%= al.getReleaseDate() %>" />
	<input type="hidden" name="refreshDate" value="<%= al.getRefreshDate() %>" />
	
	<input type="hidden" name="memberPicUrl" value="<%= al.getMemberPicUrl() %>" />


	
<div id="bigbox">
<table width="700" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="28" class="td_bottom"><strong> 基本资料</strong></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="28" align="right">姓名：</td>
				<td><input type="text" name="memberName" id="textfield" value="<%=al.getMemberName() %>"/></td>
				<td align="right">性 别： <label></label></td>
				<td>
					<label>
					<select name="memberSex" id="select">
	               <%
						Iterator  sex=CodeMap.sex.keySet().iterator();
					
						while(sex.hasNext()){
							
							String key=sex.next().toString();
							
							String value=CodeMap.sex.get(key).toString();
					%>
					<option value="<%=key %>" <%= al.getMemberSex().equals(key)?"selected":"" %>><%=value %></option>
					<%
						}
					%>	
	              </select>
				
				</label>
				</td>
				<td colspan="2" rowspan="6" align="center">
				<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td colspan="2" align="center"><img src="<%=al.getMemberPicUrl() %>"
							width="120" height="128" /></td>
					</tr>
					<tr>
						<td width="80" height="28" align="right">上传/修改：</td>
						<td><label> <input name="file" type="file"
							id="fileField" size="6" /> </label></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td width="100" height="28" align="right">证件类型：</td>
				<td>
					<select name="memberCardType" id="select8">
						<%
							Iterator  it=CodeMap.IDType.keySet().iterator();
						
							while(it.hasNext()){
								
								String key=it.next().toString();
								
								String value=CodeMap.IDType.get(key).toString();
						%>
						<option value="<%=key %>"><%=value %></option>
						<%
							}
						%>
					</select>
					
				</td>
				
				<td width="100" align="right">证件号： <label></label></td>
				<td><label> 
					<input type="text" name="memberCardNo" id="textfield37" value="<%=al.getMemberCardNo() %>"/> 
				</label></td>
			</tr>
			<tr>
				<td height="28" align="right">年龄： <label></label></td>
				<td><input type="text" name="memberAge" id="textfield3" value="<%=al.getMemberAge() %>"/></td>
				<td align="right">婚姻状况： 
					
				</td>
				<td>
				<label>
						<select name="memberMarry" id="select">
		               <%
							Iterator  marriage=CodeMap.marriage.keySet().iterator();
						
							while(marriage.hasNext()){
								
								String key=marriage.next().toString();
								
								String value=CodeMap.marriage.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getMemberMarry().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
		              </select>
					
					</label>
				</td>
			</tr>
			<tr>
				<td height="28" align="right">电邮地址：</td>
				<td><input type="text" name="memberEmail" id="textfield6" value="<%=al.getMemberEmail() %>"/></td>
				<td align="right">民族/国籍： <label></label></td>
				<td><label> 
				<select name="memberState">
					<%
							Iterator  memberState=CodeMap.state.keySet().iterator();
						
							while(memberState.hasNext()){
								
								String key=memberState.next().toString();
								
								String value=CodeMap.state.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getMemberState().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
				
				</select>
			</label></td>
			</tr>
			<tr>
				<td height="28" align="right">联系电话：</td>
				<td><input type="text" name="memberPhone" id="textfield7" value="<%=al.getMemberPhone() %>"/></td>
				<td align="right">身高：</td>
				<td><input type="text" name="memberHeight" id="textfield10" value="<%=al.getMemberHeight() %>"/></td>
			</tr>
			<tr>
				<td height="28" align="right">兴趣爱好：</td>
				<td><label> <input type="text" name="memberIntrest"	id="textfield12" value="<%=al.getMemberIntrest() %>"/> </label></td>
				<td align="right">现住址：</td>
				<td><input type="text" name="memberHomeAddress" id="textfield8" value="<%=al.getMemberHomeAddress() %>"/></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="700" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="28" class="td_bottom"><strong> 求职意向</strong></td>
	</tr>
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100" height="28" align="right">&nbsp;</td>
				<td width="247">&nbsp;</td>
				<td width="100" align="right">&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td height="28" align="right">期望岗位：</td>
				<td>
				<label> 
					<select name="wantPost" id="select19">
						<%
							Iterator  it_jobType=CodeMap.jobType.keySet().iterator();
						
							while(it_jobType.hasNext()){
								
								String key=it_jobType.next().toString();
								
								String value=CodeMap.jobType.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getWantPost().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>
					</select>
				</label> </td>
				
				
				<td height="28" align="right">行业：</td>
				
				<td>
					<select name="businessType" id="select3">
						<%
							Iterator  businessType=CodeMap.businessType.keySet().iterator();
						
							while(businessType.hasNext()){
								
								String key=businessType.next().toString();
								
								String value=CodeMap.businessType.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getBusinessType().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>
					</select>
				</td>
			</tr>
			<tr>
				<td height="28" align="right">经 验：</td>
				<td>
					<select name="workExperience" id="select3">
						<%
							Iterator  injobTime=CodeMap.injobTime.keySet().iterator();
						
							while(injobTime.hasNext()){
								
								String key=injobTime.next().toString();
								
								String value=CodeMap.injobTime.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getWorkExperience().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
					</select>
				</td>
				<td align="right">学 历：</td>
				<td>
					<select name="schoolage" id="select8">
						<%
							Iterator  edu=CodeMap.edu.keySet().iterator();
						
							while(edu.hasNext()){
								
								String key=edu.next().toString();
								
								String value=CodeMap.edu.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getSchoolage().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
					</select>
				</td>
			</tr>
			<tr>
				<td height="28" align="right">求职类型：</td>
				<td>
					<select name="appJobType" id="select11">
						<%
							Iterator  toJobType=CodeMap.toJobType.keySet().iterator();
						
							while(toJobType.hasNext()){
								
								String key=toJobType.next().toString();
								
								String value=CodeMap.toJobType.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getAppJobType().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
					</select>
				</td>
				<td align="right">可到岗时间：</td>
				<td>
					<select name="selectYear">
		             <%
		             	for(int i=2009;i<2019;i++){
		             		
		             %>
		             	<option value="<%=i %>" <%= String.valueOf(i).equals(year)?"selected":"" %>><%=i %></option>
		             <%		
		             		
		             	}
		             %>
		             </select>
		             
					<select name="selectMonth">
		              <%
		             	for(int i=1;i<13;i++){
		             		
		             %>
		             	<option value="<%=i %>" <%= String.valueOf(i).equals(month)?"selected":"" %>><%=i %></option>
		             <%		
		             		
		             	}
		             %>
		              
		              </select>
				</td>
			</tr>
			<tr>
				<td align="right">月薪范围：</td>
				<td>
					<select name="wantJobPay" id="select12">
						<%
							Iterator  income=CodeMap.income.keySet().iterator();
						
							while(income.hasNext()){
								
								String key=income.next().toString();
								
								String value=CodeMap.income.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getWantJobPay().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
					</select>
				</td>
				<td align="right">工作意向地：</td>
				<td>
					<select name="wantJobAddress" id="select10">
						<%
							Iterator  toJobArea=CodeMap.toJobArea.keySet().iterator();
						
							while(toJobArea.hasNext()){
								
								String key=toJobArea.next().toString();
								
								String value=CodeMap.toJobArea.get(key).toString();
						%>
						<option value="<%=key %>" <%= al.getWantJobAddress().equals(key)?"selected":"" %>><%=value %></option>
						<%
							}
						%>	
					</select>
				</td>
			</tr>
			<tr>
				<td height="28" align="right">是否已离职：</td>
				<td><label> 
				<input type="radio" name="noJob" id="radio"	value="是 "  <%= al.getNoJob().trim().equals("是")?"checked":"" %>  /> 是 
				<input type="radio" name="noJob" id="radio2" value="否"  <%= al.getNoJob().trim().equals("否")?"checked":"" %>/> 否</label></td>
				<td height="28" align="right">&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>

<!-- 工作经历 -->
<div id="jobhistoryList">工作经历列表加载中。。。。。</div>
<!-- end 工作经历 -->

<!-- 教育背景 -->
<div id="educationhistoryList">教育背景列表加载中。。。。。</div>
<!-- end 教育背景 -->


<table width="700" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="28" colspan="4" class="td_bottom"><strong>
		职业技能和特长</strong></td>
	</tr>
	<tr>
		<td width="180">&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td height="28" align="right">外语语种：</td>
		<td><label> 
			<select name="hasLanguageType" id="select">
			<%
				Iterator  fLanguage=CodeMap.fLanguage.keySet().iterator();
			
				while(fLanguage.hasNext()){
					
					String key=fLanguage.next().toString();
					
					String value=CodeMap.fLanguage.get(key).toString();
			%>
			<option value="<%=key %>" <%= al.getHasLanguageType().equals(key)?"selected":"" %>><%=value %></option>
			<%
				}
			%>	
			</select> 
		</label></td>
		
		<td align="right">掌握程度：</td>
		<td>
		<select name="hasLanguageLevel" id="select16">
			<%
				Iterator  level=CodeMap.level.keySet().iterator();
			
				while(level.hasNext()){
					
					String key=level.next().toString();
					
					String value=CodeMap.level.get(key).toString();
			%>
			<option value="<%=key %>" <%= al.getHasLanguageLevel().equals(key)?"selected":"" %>><%=value %></option>
			<%
				}
			%>	
		</select>
		</td>
	</tr>
	<tr>
		<td height="28" align="right">听说能力：</td>
		<td>
			<select name="hasLanguageSpeakLevel" id="select17">
				<%
					Iterator  level1=CodeMap.level.keySet().iterator();
				
					while(level1.hasNext()){
						
						String key=level1.next().toString();
						
						String value=CodeMap.level.get(key).toString();
				%>
				<option value="<%=key %>" <%= al.getHasLanguageSpeakLevel().equals(key)?"selected":"" %>><%=value %></option>
				<%
					}
				%>	
			
			</select>
		</td>
		<td height="28" align="right">读写能力：</td>
		<td>
			<select name="hasLanguageWriteLevel" id="select17">
				<%
					Iterator  level2=CodeMap.level.keySet().iterator();
				
					while(level2.hasNext()){
						
						String key=level2.next().toString();
						
						String value=CodeMap.level.get(key).toString();
				%>
				<option value="<%=key %>" <%= al.getHasLanguageWriteLevel().equals(key)?"selected":"" %>><%=value %></option>
				<%
					}
				%>	
			</select>
		</td>
	</tr>
	<tr>
		<td align="right">英语等级：</td>
		<td>
			<select name="englishLevel" id="select18">
				<%
					Iterator  englishlevel=CodeMap.englishlevel.keySet().iterator();
				
					while(englishlevel.hasNext()){
						
						String key=englishlevel.next().toString();
						
						String value=CodeMap.englishlevel.get(key).toString();
				%>
				<option value="<%=key %>" <%= al.getEnglishLevel().equals(key)?"selected":"" %>><%=value %></option>
				<%
					}
				%>	
			</select>
		</td>
		<td height="28" align="right">资格证书：</td>
		<td><input type="text" name="certificate" id="textfield33" value="<%=al.getCertificate() %>"/></td>
	</tr>
	<tr>
		<td height="28" align="right">技能专长：</td>
		<td><input type="text" name="skillSummary" id="textfield34" value="<%=al.getSkillSummary() %>"/></td>
		<td height="28" align="right">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="700" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="28" colspan="2" class="td_bottom"><strong>
		自我评价</strong></td>
	</tr>
	<tr>
		<td width="180">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td height="28" align="right">您最擅长的工作是：</td>
		<td><label> <input name="goodJob" type="text"
			id="textfield36" size="50" value="<%=al.getGoodJob() %>"/> </label></td>
	</tr>
	<tr>
		<td height="28" align="right">您最喜欢的工作是：</td>
		<td><input name="likeJob" type="text" id="textfield29"
			size="50" value="<%=al.getLikeJob() %>"/></td>
	</tr>
	<tr>
		<td height="28" align="right">您认为自己最大的缺点是：</td>
		<td><input name="maxShortcoming" type="text" id="textfield31"
			size="50" value="<%=al.getMaxShortcoming() %>"/></td>
	</tr>
	<tr>
		<td height="28" align="right">其它：</td>
		<td><input name="otherAssess" type="text" id="textfield35"
			size="50" value="<%=al.getOtherAssess() %>"/></td>
	</tr>
</table>
<table width="700" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td align="right">&nbsp;</td>
		<td width="550">&nbsp;</td>
	</tr>
	
	<input type="hidden" name="channelId" value="0" />
	
	<tr>
		<td width="150" align="right">选择发布二级频道：</td>
		<td>
			<select name="subChannelId" id="select21">
				<option value="0">频道一</option>
			</select> 
			
			<input type="radio" name="radio" id="radio5" value="radio" /> 立即发布 
			<input type="radio" name="radio" id="radio6" value="radio2" checked/> 待上架 
			<span class="txt_gray">什么是待上架? 说明：待上架的内容不在前台显示</span>
		</td>
	</tr>
</table>
<table width="700" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td align="center" class="td_bottom">&nbsp;</td>
	</tr>
	<tr>
		<td height="60" align="center"><label> 
			<input	type="button" name="button2" id="button2" value="预览" /> 
			<input	type="submit" name="button2" id="button2" value="保存" /> 
			<input	type="reset" name="button2" id="button5" value="取消" /> 
		</label></td>
	</tr>
</table>
</div>
</form>
</body>
</html>
